package com.bjpowernode.mvc.service.inter;

import com.bjpowernode.db.domain.SysUser;
import com.bjpowernode.db.result.UserAccountResult;
import com.bjpowernode.mvc.model.dto.UserDTO;
import com.bjpowernode.mvc.model.dto.UserTokenDTO;


public interface UserService {
    //根据手机号查询用户
    SysUser queryByPhone(String phone);

    boolean checkSmsCode(String action, String phone, String code);

    boolean registerUser(UserDTO userDTO);

    SysUser userLogin(String phone, String password, String ip);

    String createToken(SysUser sysUser);

    boolean realname(Integer uid, String name, String idCard, String token);

    SysUser queryById(Integer uid);

    UserAccountResult queryUserAccountByUid(Integer uid);

    UserTokenDTO getLoginInfo(String token);

    boolean userLogout(String token);
}
